package com.cenntro.nearr.base;

import java.util.List;

public abstract class BaseServiceImpl<T> implements BaseService<T>{

	public abstract BaseMapper<T> getMapper();
	
	@Override
	public int deleteById(Integer id) {
		return getMapper().deleteById(id);
	}
	
	@Override
	public int insert(T t) {
		return getMapper().insert(t);
	}
	
	@Override
	public T selectById(Integer id) {
		return getMapper().selectById(id);
	}
	
	@Override
	public int update(T t) {
		return getMapper().update(t);
	}
	
	@Override
	public int selectCount(T t) {
		return getMapper().selectCount(t);
	}
	
	@Override
	public List<T> selectPage(T t) {
		return getMapper().selectPage(t);
	}
}
